import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home'
import StudentList from '@/components/student_list';
import StudentEdit from '@/components/student_edit';


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
    	path: '/student_list',
    	name: '学生列表',
    	component: StudentList
    },
    {
    	path: '/student_edit',
    	name: '学生信息编辑',
    	component: StudentEdit
    }
  ]
})
